package office.action.business.form;

import office.bo.business.impl.BidProductDetail;
import platform.common.bo.IIdentifiableObj;
/**
 * 标书对应的产品结构Form
 * @author ZhangYQ
 *
 */
public class BidProductDetailForm {
	private String id;
	private String productName; //产品名称
	private String productUnit; //产品单位
	private long countNum;    //产品数量
	private double unitPrice;   //产品单价
	private double totalprice;  //产品总价
	private double totalQuotePrice; //总报价
	private double tenderMoney;   //投标金额
	private String mark;        //备注
	private String bidBookId; //对应的标书
	private String bidBookName; //对应的标书名称
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		BidProductDetail bo = (BidProductDetail)newObj;
		bo.setId(this.id);
		bo.setProductName(productName);
		bo.setProductUnit(productUnit);
		bo.setCountNum(countNum);
		bo.setUnitPrice(unitPrice);
		bo.setTotalprice(totalprice);
		bo.setTotalprice(totalQuotePrice);
		bo.setTenderMoney(tenderMoney);
		bo.setMark(mark);
		bo.setBidBookId(bidBookId);
		bo.setBidBookName(bidBookName);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		BidProductDetail bo = (BidProductDetail)baseBO;
		this.id = bo.getId().toString();
		this.productName = bo.getProductName();
		this.productUnit = bo.getProductUnit();
		this.countNum = bo.getCountNum();
		this.unitPrice = bo.getUnitPrice();
		this.totalprice = bo.getTotalprice();
		this.totalQuotePrice = bo.getTotalQuotePrice();
		this.tenderMoney = bo.getTenderMoney();
		this.mark = bo.getMark();
		this.bidBookId = bo.getBidBookId();
		this.bidBookName = bo.getBidBookName();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductUnit() {
		return productUnit;
	}

	public void setProductUnit(String productUnit) {
		this.productUnit = productUnit;
	}

	public long getCountNum() {
		return countNum;
	}

	public void setCountNum(long countNum) {
		this.countNum = countNum;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public double getTotalprice() {
		return totalprice;
	}

	public void setTotalprice(double totalprice) {
		this.totalprice = totalprice;
	}

	public double getTotalQuotePrice() {
		return totalQuotePrice;
	}

	public void setTotalQuotePrice(double totalQuotePrice) {
		this.totalQuotePrice = totalQuotePrice;
	}

	public double getTenderMoney() {
		return tenderMoney;
	}

	public void setTenderMoney(double tenderMoney) {
		this.tenderMoney = tenderMoney;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getBidBookId() {
		return bidBookId;
	}

	public void setBidBookId(String bidBookId) {
		this.bidBookId = bidBookId;
	}

	public String getBidBookName() {
		return bidBookName;
	}

	public void setBidBookName(String bidBookName) {
		this.bidBookName = bidBookName;
	}
	
}
